package com.practice;

public class ArrayCopy {
    public static void main(String[] args) {
        int[] array={1,5,3,6,9,7,8};
        int[] arrCopy=new int[array.length];
        for (int i = 0; i < array.length ; i++) {
            arrCopy[i]=array[i];
        }
        for (int i = 0; i < arrCopy.length; i++) {
            System.out.print(arrCopy[i]+" ");
        }
    }
}
